import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 方案子CRUD
export const programmeCRUD = CRUD('/system/budget-project-data');

// 方案主CRUD
export const programmeNameCRUD = CRUD('/system/budget-project-name');
// 成本
export const programmeCostCRUD = CRUD('/system/budget-project-cost');

// 修改实际价格
export function updateQuotation(data: Record<string, any>) {
  return request.post({
    url: '/system/budget-project-quotation/update-quotation',
    data,
  });
}

// 修改成本
export function updateCost(data: Record<string, any>) {
  return request.post({
    url: '/system/budget-project-cost/update-cost',
    data,
  });
}
